package com.demo.designmode.observer;

/**
 * @Author: jxm
 * @Description: 定义具体观察者类，微信用户是观察者
 * @Date: 2023-12-12 10:40
 * @Version: 1.0
 */
public class WeixinUser implements Observer{

    // 微信用户名
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
